package com.SouthernWall_404.AgeRight.Common.API.LockAPI;

import net.minecraft.tags.TagKey;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.state.BlockState;

import java.util.ArrayList;
import java.util.List;

/**
 * @deprecated 使用 LockableBlocksRegistry 替代
 */
@Deprecated
public class LockableBlocks {
    public static List<Block> lockableBlocks = new ArrayList<>();
    public static List<TagKey<Block>> lockableTags = new ArrayList<>();

    // 注册单个方块
    public static void registerBlock(Block block) {
        LockableBlocksRegistry.registerBlock(block);
    }

    // 注册标签
    public static void registerBlockTag(TagKey<Block> tagKey) {
        LockableBlocksRegistry.registerBlockTag(tagKey);
    }

    // 检查方块是否可锁定
    public static boolean isLockable(BlockState blockState) {
        return LockableBlocksRegistry.isLockable(blockState);
    }
}